package br.com.inner.custom;

import oracle.toplink.essentials.jndi.JNDIConnector;
import oracle.toplink.essentials.sessions.Session;
import oracle.toplink.essentials.tools.sessionconfiguration.SessionCustomizer;

public class ToplinkCustom implements SessionCustomizer {

	/** 
	 * @param session
	 * @see oracle.toplink.essentials.tools.sessionconfiguration.SessionCustomizer#customize(oracle.toplink.essentials.sessions.Session)
	 */
	public void customize(Session session) throws Exception {
		JNDIConnector connector = (JNDIConnector) session.getLogin().getConnector();
		connector.setLookupType(JNDIConnector.STRING_LOOKUP);
	}

}
